package com.zx.mes.hyl.strategy.impl;

import com.zx.mes.hyl.strategy.IKeyGenerateStrategy;

import java.util.UUID;

/**
 * 默认的com.zx.mes.hyl.strategy.KeyGenerateStrategy实现
 *
 * @author 华云龙
 * @date 2018-11-29
 */
public class DefaultKeyGenerateStrategyImpl implements IKeyGenerateStrategy {

    /**
     * 返回4个字节,32位的UUID key
     * @return string
     */
    @Override
    public String creator() {
        return UUID.randomUUID().toString();
    }
}
